//
//  UIView+Add.m
//  YSProject
//
//  Created by 昱胜 on 2022/7/13.
//

#import "UIView+Add.h"

@implementation UIView (Add)

+ (void)openWechat {
    NSURL * url = [NSURL URLWithString:@"weixin://"];
    BOOL canOpen = [[UIApplication sharedApplication] canOpenURL:url];
    //先判断是否能打开该url
    if (canOpen)
    {   //打开微信
        [[UIApplication sharedApplication] openURL:url];
    }else {
        [kSTWindow makeToast:@"您的设备未安装微信APP"];
    }
}

@end
